package com.itheima.api.bigdecimal;

import java.math.BigDecimal;

public class demo {

    public static void main(String[] args) {

        BigDecimal bigDecimal = new BigDecimal("7");
        BigDecimal bigDecimal1 = new BigDecimal(3);


//        System.out.println(bigDecimal.divide(bigDecimal1));
        System.out.println(bigDecimal.divide(bigDecimal1, 2, BigDecimal.ROUND_UP));
        System.out.println(bigDecimal.divide(bigDecimal1, 2, BigDecimal.ROUND_FLOOR));
        System.out.println(bigDecimal.divide(bigDecimal1, 2, BigDecimal.ROUND_HALF_UP));
        System.out.println(bigDecimal.divide(bigDecimal1, 2, BigDecimal.ROUND_FLOOR));
        System.out.println(bigDecimal.divide(bigDecimal1, 2, BigDecimal.ROUND_CEILING));
    }
}
